package com.lagou.niancheng.lagouservicegateway.ext;

import com.lagou.niancheng.lagou.service.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * com.lagou.niancheng.lagouservicegateway.ext.ExtTokenService
 *
 * @author 大犬
 * @date 2020/7/1
 */
@FeignClient(value = "user-server", fallback = ExtTokenServiceImpl.class)
public interface ExtTokenService {

    @GetMapping("/user/check/{token}")
    Result<Boolean> checkToken(@PathVariable("token") String token);
}
